-
Notifications
You must be signed in to change notification settings - Fork 123
Documentation/rest api web #2770
Documentation/rest api web #2770
Conversation
@markus2330 @sanssecours the pull request is related to the #2746 It is just another copy as I was forced to refork the repository. The reason for that was, that I mistakenly added commits to the master, which are not merged into this (main) repository, so I get those changes on every pull request. Deleting commits with the git rebases didn't help me. Additionally I had some problems with jenkins tool, which checks, if the commit can be merged or not. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the improved tutorial
src/tools/web/README.md
Outdated
- `cd libelektra/src/tools/web` | ||
- `cd elektrad` | ||
- `npm install` | ||
- `npm start` (replaces `kdb run-elektrad`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What means "replaces" here? From source you use npm start
, if installed kdb run-elektrad
. It seems to be that this instructions duplicate the instructions above or web/elektrad?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I just copy pasted what is written in https://www.libelektra.org/tools/web in the section "Running from source".
It means, that all 4 commands:
cd libelektra/src/tools/web
cd elektrad
npm install
npm start
replace kdb run-elektrad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I just copy pasted
Please don't do this.
https://www.libelektra.org/tools/web is generated from this document.
src/tools/web/README.md
Outdated
- `npm start` (replaces `kdb run-elektrad`) | ||
|
||
- by installing elektrad tool together with Elektra and run it | ||
- please see the documentation [here](https://www.libelektra.org/tools/web) on how to install and run the elektra-web tool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this self-reference on purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh sorry, I didn't notice that, I will improve this
src/tools/web/README.md
Outdated
Let's create the new key-value pair `user/test`: | ||
|
||
```sh | ||
kdb set user/test 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How to set via REST API?
"value": "5", | ||
"meta": "" | ||
} | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please refer to the API docu for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will improve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not yet done?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markus2330 it is done. In the file I showed, how the user can set a value via curl
@markus2330, I updated the guide, please check |
The installation procedure is still copy&pasted? |
@markus2330 , no, the installation of the web-elektrad tool is not copy pasted. Right now, I just added the note, "please see the section Building with elektra-web Tool". The only thing, which is copy pasted, is four commands to start the server manually: But everything others is written newly. |
You can always just create another branch based on the
. Anyway, I would recommend you read the book “Git Pro” to learn a little bit more about the versioning tool. I also recommend you use a GUI, which usually simplifies working with |
@sanssecours, thank you for your recommendation. I didn't know, that I could create the new branch from master of the main repository as I haven't worked with forked repositories before. But I will take it into account right now. Sorry for inconveniences. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for incorporating the changes I suggested. Looks like the formatting check still fails. Can you please follow the steps suggested by the build server, or alternatively, format the ReadMe with prettier
, as described here?
@sanssecours I will try to fix code formatting later today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the stuff that @markus2330 already requested, this looks good to me.
f1f2f21
to
fa1782b
Compare
@sanssecours , @markus2330 I was forced to change the output format from json to sh because in the doc/CODING.md, on the line 376, it is specified:
I checked then README.md with prettier tool after the changes and everything works well right now. Additionally to this, I tried to reformat the README.md file together with scripts/reformat-markdown script from the libelektra project root.
I've got the error:
|
Please do not use incorrect language specifiers. The code block in question contains JSON code, not code for the Bourne shell (aka You do not need to write this tutorial using (Markdown) Shell Recorder syntax, even if the sentence you quoted might suggest otherwise.
Interesting. Did you maybe change the line endings of |
Okay but if the build is failed because I specify any other language, then sh, so what should I do right now? Should I change something? If yes, than what exactly should I change and on what? Or will my pull request will be merged?
I tried it quickly form my other laptop, where I have windows installed. In the evening I will try to execute this script on other laptop, where I have linux installed. |
I just pushed a commit that contains my suggested changes.
I think as soon as Markus and the build server are happy with the status of the PR, Markus will merge your updates. |
@sanssecours thank you very much for help. |
Thank you! |
Basics
Check relevant points but please do not remove entries.
Do not describe the purpose of this PR in the PR description but:
doc/news/_preparation_next_release.md
which contains_(my name)_
)Please always add something to the the release notes.
(first line should have
module: short statement
syntax)close #X
, should be in the commit messages.Checklist
Check relevant points but please do not remove entries.
For docu fixes, spell checking, and similar none of these points below
need to be checked.
Review
Reviewers will usually check the following:
Labels
say that everything is ready to be merged.
@markus2330 @sanssecours please review my pull request